﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class TimeService : ITimeService
{
    Dictionary<string, ObjPool<GameTimer>> timerPool = new Dictionary<string, ObjPool<GameTimer>>();
    public bool RegisterTimeLine(string lineType, int priority)
    {
        return true;
    }

    public bool RegisterTimer(string lineType, Action<object> callBack)
    {
        if (timerPool.ContainsKey(lineType))
        {
            if (timerPool[lineType] == null)
            {
                timerPool[lineType] = new ObjPool<GameTimer>(10);
            }
            else
            {

            }
        }
        return true;
    }

    public bool RegisterOnceTimer(string lineType, Action<object> callBack)
    {
        throw new NotImplementedException();
    }

    public bool RegisterLoopTimer(string lineType, Action<object> callBack)
    {
        throw new NotImplementedException();
    }
}